package com.etc.order.provider.config;

import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class PropertiesListener implements ApplicationListener<ApplicationStartedEvent> {
    @Override
    public void onApplicationEvent(ApplicationStartedEvent event) {
        try {
            AlipayProperties.loadProperties();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
